<template>
    <el-dialog v-dialogDrag title="添加组织" :visible.sync="visible" width="500px" :close-on-click-modal="false" @close="onClose" @open="onOpen">
        <el-form :model="form" class="demo-form" label-width="120px;">
            <el-form-item label="上级组织：">
                {{1111}}
            </el-form-item>
            <el-form-item label="编码：">
                <el-input v-model="form.bm" placeholder="请输入" />
            </el-form-item>
            <el-form-item label="名称：">
                <el-input v-model="form.mc" placeholder="请输入" />
            </el-form-item>
            <el-form-item label="简称：">
                <el-input v-model="form.mc" placeholder="请输入" />
            </el-form-item>
            <el-form-item label="类型：">
                外部公司
            </el-form-item>
            <el-form-item label="是否虚拟组织：">
                <el-select v-model="form.sfxnzz">
                    <el-option value="0" label="是" />
                    <el-option value="1" label="否" />
                </el-select>
            </el-form-item>
            <el-form-item label="图标："></el-form-item>
            <el-form-item label="排序号：">
                <el-input v-model="form.pxh" placeholder="请输入" />
            </el-form-item>
            <el-form-item label="状态：">
                <el-radio-group v-model="form.status">
                    <el-radio label="0">启用</el-radio>
                    <el-radio label="1">禁用</el-radio>
                </el-radio-group>
            </el-form-item>
        </el-form>
        <span slot="footer" class="dialog-footer">
            <el-button class="bottom_all_two" @click="onClose">取 消</el-button>
            <el-button class="bottom_all" type="primary" @click="onConfirm">确 定</el-button>
        </span>
    </el-dialog>
</template>
<script>
export default {
    props: {
        visible: {
            type: Boolean,
            default: false
        },
        config: {
            type: Object,
            default: ()=>{}
        }
    },
    data() {
        return {
            form: {},
        }
    },
    methods: {
        onOpen() {},
        onClose() {
            this.$emit('update:visible', false);
        },
        onConfirm() {
            this.$emit('update:visible', false);
        }
    }
}
</script>
<style lang="scss" scoped>
</style>


